package com.analyse;

import com.tushare.service.impl.StockBasicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OneAnalyse {
    @Autowired
    StockBasicServiceImpl stockBasicService;

    @GetMapping("one")
    public void one() {
        stockBasicService.getAllStockBasic()
                .forEach(stockBasic -> {
                    System.out.println(stockBasic.getMarket());
                });
    }


}
